<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>新增会员 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{'vip_form_head'|fire}
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li><a href="./"><i class="icon-user"></i>会员列表</a></li>
			    <li class="active"><a href="#"><i class="icon-plus"></i>新增会员</a></li>			    
		    </ul>
		    {if $page_tip_info}
		    <div class="alert alert-error">
		        <button class="close" data-dismiss="alert">×</button>
		        {$page_tip_info}
	      	</div>
	      	{/if}
		</div>
		<div>			
			<form class="form-horizontal" id="user-form" method="POST" action="./?Ctlr=SaveVip">
				<input type="hidden" name="uid" id="uid" value="{$uid}"/>
				<input type="hidden" name="sns_from" id="sns_from" value="{$sns_from}"/>
	        	<fieldset>          		
	          		<div class="control-group {$error_cls.account}">
	          			<label class="control-label" for="account">会员账户</label>
	            		<div class="controls">
	              			<input type="text" id="account" name="account" value="{$account}"/>
	              			<input type="hidden" id="oaccount" name="old_account" value=""/>
	              			<span class="help-inline">{$error.account}</span>
	            		</div>
	          		</div>          
	          		
	          		<div class="control-group {$error_cls.email}">
	            		<label class="control-label" for="email">邮箱</label>
	            		<div class="controls">
	              			<input type="text" id="email" name="email" value="{$email}"/>
	              			<input type="hidden" id="oemail" name="old_email" value=""/>
	              			<span class="help-inline">{$error.email}</span>
	            		</div>
	          		</div>	          		
	          		<div class="control-group {$error_cls.gname}">
	            		<label class="control-label" for="gname">所在组</label>
	            		<div class="controls">
	              			<select name="gname" id="gname">
	              				{html_options options=$group_options selected=$gname}
	              			</select>
	              			<span class="help-inline">{$error.gname}</span>
	            		</div>
	          		</div>        		
	          		<div class="control-group">
	            		<label class="control-label" for="passwd">密码</label>
	            		<div class="controls">
	              			<input type="password" name="passwd" id="passwd"/>
	              			<span class="help-inline"></span>
	            		</div>
	          		</div>
	          		
	          		<div class="control-group">
	            		<label class="control-label" for="passwd1">确认密码</label>
	            		<div class="controls">
	              			<input type="password" name="passwd1" id="passwd1"/>
	              			<span class="help-inline"></span>
	            		</div>
	          		</div>
	          		
	          		<div class="control-group">
	            		<label class="control-label" for="status">激活</label>
	            		<div class="controls">
	            			<label class="radio inline" for="status">
	              				<input type="radio" id="status" name="status" value="actived" {'actived'|checked:$status}/>是
	              			</label>
	              			<label class="radio inline" for="status1">
	              				<input type="radio" id="status1" name="status" value="inactived" {'inactived'|checked:$status}/>否 
	              			</label>      			
	            		</div>
	          		</div>
	          			  
	          		{'vip_form'|fire:$vip}		          	
		          	<div class="form-actions">
		            	<button type="submit" class="btn btn-primary">新增</button>
		            	<button type="submit" name="goon" value="1" class="btn btn-primary">新增并继续</button>
		            	<a href="./" class="btn">放弃</a>
		          	</div>
	        	</fieldset>
	      	</form>
      	</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'plugins/jquery.validate.js'|jquery}"></script>
		<script type="text/javascript" src="vip_form.js"></script>
		{'vip_form_foot'|fire}
	</body>
</html>